import request from '@/utils/request'

// 查询会议列表
export function listOrder(data) {
  return request({
    url: '/order/order/list',
    method: 'post',
    data: data
  })
}

// 查询会议详细
export function getOrder(id) {
  return request({
    url: '/order/order/' + id,
    method: 'get'
  })
}

// 新增会议
export function addOrder(data) {
  return request({
    url: '/order/order',
    method: 'post',
    data: data
  })
}

// 修改会议
export function updateOrder(data) {
  return request({
    url: '/order/order',
    method: 'put',
    data: data
  })
}

// 删除会议
export function delOrder(id) {
  return request({
    url: '/order/order/' + id,
    method: 'delete'
  })
}

// 查询会议列表
export function vods(query) {
  return request({
    url: '/order/order/vods',
    method: 'get',
    params: query
  })
}

// 订单详情
export function getOrderExpList(id) {
  return request({
    url: `/order/order/getOrderExpList/${id}`,
    method: 'get'
  })
}
// 订单详情
export function getOrderInfo(id) {
  return request({
    url: `/order/order/info/${id}`,
    method: 'get'
  })
}

// 结算汇总
export function groupList(id,data) {
  return request({
    url: `/bill/bill/groupList/${id}`,
    method: 'get',
    params: data
  })
}
// 结算明细
export function billList(query) {
  return request({
    url: `/bill/bill/billList`,
    method: 'get',
    params: query
  })
}

// 视频列表
export function recordList(query) {
  return request({
    url: `/order/order/list/record/list`,
    method: 'get',
    params: query
  })
}

// 确认收款
export function setOrderPay(data) {
  return request({
    url: `/check/order/collect/pay`,
    method: 'post',
    data
  })
}

// 确认发货
export function updateOrderMailing(data) {
  return request({
    url: `/check/order/mailing/update`,
    method: 'post',
    data
  })
}
